﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.Product;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IAccessoriesTypeService
    {
        /// <summary>
        /// 根据主键ID获取配件类型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        AccessoriesType LoadByID(int id);
        /// <summary>
        /// 判断配件类型是否存在
        /// </summary>
        /// <param name="accessoriestName">配件类型名称</param>
        /// <param name="id">配件类型ID</param>
        /// <returns></returns>
        bool IsExist(string accessoriestName, int id = 0);

        /// <summary>
        /// 分页获取配件类型列表
        /// </summary>
        /// <param name="model">过滤条件</param>
        /// <param name="total">总数量</param>
        /// <returns></returns>
        IQueryable<AccessoriesType> GetPagingList(AccessoriesTypeModel model, out int total);
    }
}
